{% extends "base.html" %}
{% block title %}{{ user.name|e }}{% endblock %}

{% import 'macros.html' as macros %}

{% block content %}
<h1>{{ user.user_id|e }}</h1>
<form action="/" method="post">
  <ul>
    <li><label>name<input type="text" name="name" value="{{ user.name|e }}"></label></li>
    <li><label>description<textarea name="description">{{ user.description|e }}</textarea></label></li>
  </ul>
  {{ macros.set_token(token) }}
  <input type="submit" value="Submit">
</form>

<form action="/user/delete" method="post">
  {{ macros.set_token(token) }}
  <input type="submit" value="Delete Your Account">
</form>
{% endblock %}
